package com.prd.model;

import java.time.LocalTime;
import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 出勤打卡数据表(Attendance)实体类
 *
 * @author wuzhengchao
 * @since 2023-10-18 23:51:04
 */
@Data
@TableName("attendance")
public class Attendance extends Model<Attendance> {
    private static final long serialVersionUID = -31018581208520558L;
    private Long id;
    /**
     * 打卡地点
     */
    @TableField(value = "address")
    private String address;
    /**
     * 打卡类型: 0-出勤打卡,1-外勤打卡,2-加班打卡
     */
    @TableField(value = "clock_type")
    private Integer clockType;
    /**
     * 上班打卡时间
     */
    @TableField(value = "clock_in")
    private LocalTime clockIn;
    /**
     * 下班打开时间
     */
    @TableField(value = "clock_out")
    private LocalTime clockOut;
    /**
     * 状态: 0-正常,1-迟到,2-早退
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 班次类型: 0-日班,1-夜班
     */
    @TableField(value = "work_type")
    private Integer workType;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 备注
     */
    @TableField(value = "remakes")
    private String remakes;
    /**
     * 上传图片路径
     */
    @TableField(value = "img_url")
    private String imgUrl;
    /**
     * 上班规定考勤时间
     */
    @TableField(value = "require_in")
    private LocalTime requireIn;
    /**
     * 用户名称
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 下班规定考勤时间
     */
    @TableField(value = "require_out")
    private LocalTime requireOut;
    /**
     * 考勤日期
     */
    @TableField(value = "clock_date")
    private Date clockDate;
    /**
     * 外勤表id
     */
    @TableField(value = "outside_id")
    private Integer outsideId;


}

